package com.common.app.data.bean.user

import android.os.Parcelable
import com.common.app.data.bean.circle.CirclesMedalModel
import kotlinx.parcelize.Parcelize

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2022/8/20
 * <p>
 * 描述：用户数据
 * <p>
 * 修订历史：
 */

@Parcelize
data class LoginBean(
    val Token: String = "",
    var Profile: UserBean? = null,
) : Parcelable

@Parcelize
data class UserBean(
    val Token: String = "",
    var avatar_url: String? = null,
    var phone: String? = null,
    var nickname: String? = null,
    var mobile: String? = null,
    var birthday: String? = null,
    var height: Int = 0,
    var weight: Int = 0,
    var sex: Int = 1,//0女1男
    val user_id: Int = 0,
    var avatar: Int = 0,
    var description: String? = null,
    val uniq_id: String? = null,
    val badge_count: Int = 0,
) : Parcelable {
    fun getId():String{
        return user_id.toString()
    }
    fun getUserNickname():String{
        return nickname?:""
    }
}

@Parcelize
class SettingInfoModel(

    /**
     * 用户名id
     */
    var id: String? = null,
    /**
     * 头像图片
     */
    val image_url: String? = null,
) : Parcelable

@Parcelize
data class UserGoalBean(
    var sleep_duration_target: Number = 0,//睡眠时长目标（小时）
    var bedtime_plan: UserGoalBedtimePlanBean? = null,//就寝计划
    var activity_duration_target: Number = 0,//活动时长目标（分钟）
    val calories_target: Number = 0,//卡路里目标
    var steps_target: Number = 0,//步数目标
) : Parcelable {
}

@Parcelize
data class UserGoalBedtimePlanBean(
    var start_time: String? = null,//开始时间，格式：HH:MM（如"22:00"）
    var end_time: String? = null,//结束时间，格式：HH:MM（如"06:00"）
) : Parcelable {
}


@Parcelize
data class UserFeedbackHistoryModel(
    var name: String? = null,//
) : Parcelable {
}